package com.gcu.admin.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @ system:Mac
 * @ author:lin tingfeng
 * @ data:2023/9/27 16:10
 * @ package_name:com.gcu.admin.pojo.entity
 * @ project_name:SpringCloud-Oauth2
 * @ desc: 系统权限实体类
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
public class SysPermission extends BaseEntity {

    @TableId(type = IdType.AUTO)
    private Long id;

    private String name;

    private Long menuId;

    private String urlPerm;

    private String btnSign;

    // 有权限的角色编号集合
    @TableField(exist = false)
    private List<String> roles;

}
